package com.manhhavu.jemas.data;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;

public class MySQLAccess {
	public static Connection getConnection() throws Exception {
		Connection connection = null;
		
		try{
			Class.forName("com.mysql.jdbc.Driver");
			connection = DriverManager
			.getConnection("jdbc:mysql://localhost/test?"
					+ "user=root&password=manhhack");
		}
		catch(Exception e){throw e;}
		finally {}
		
		return connection;
	}	
}
